From b00b7c3b0e852f1027875cd40aba8b406700dbac Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Mon, 27 Mar 2017 19:14:38 +0100 Subject: [PATCH] TextView: Be const-correct when passing a pointer The TextIter is passed by pointer for efficiency. We neither need to modify it, nor should we leave it possible to accidentally do so. So, it should be passed as a pointer-to-const. --- gtk/gtktextview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index a8ad5c2fe0..03fdf97fcf 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6344,7 +6344,7 @@ move_cursor (GtkTextView *text_view, } static gboolean -iter_line_is_rtl (GtkTextIter *iter) +iter_line_is_rtl (const GtkTextIter *iter) { GtkTextIter start, end; char *text; -- 2.30.2